home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Tools 5
/
Amiga Tools 5.iso
/
grafik
/
3d & render tools
/
irit
/
man
/
man6
/
crvlndst.6
< prev
next >
Wrap
Text File
|
1996-07-16
|
1KB
|
34 lines
.TH CRVLNDST
6 "IRIT Version 6.0"
.SH NAME
CRVLNDST
NumericType CRVLNDST( CurveType Crv, PointType PtOnLine, VectorType LnDir,
NumericType IsMinDist, NumericType Epsilon )
or
ListType CRVLNDST( CurveType Crv, PointType PtOnLine, VectorType LnDir,
NumericType IsMinDist, NumericType Epsilon )
Computes the closest (if IsMinDist is TRUE, farthest if FALSE) point
on Curve to the line specified by PtOnLine and LnDir as a
point on the line and a line direction.
Since this operation is partially numeric, Epsilon is used to set
the needed accuracy. It returns the parameter value of the location on
Crv closest to the line.
If, however, Epsilon is negative, -Epsilon is used instead,
and all local extrema in the distance function are returned as a list
(both minima and maxima).
If the line and the curve intersect, the point of intersection is
returned as the minimum.
Example:
Param = CRVLNDST( Crv, linePt, lineVec, TRUE, 0.001 );
finds the closest point on Crv to the line defined by linePt
and lineVec.